package com.adam.design.a01abstractfactory.aliyun;

import com.adam.design.a01abstractfactory.aliyun.product.AliyunOssImage;
import com.adam.design.a01abstractfactory.aliyun.product.AliyunOssVideo;
import com.adam.design.a01abstractfactory.factory.AbstractOssFactory;
import com.adam.design.a01abstractfactory.factory.product.OssImage;
import com.adam.design.a01abstractfactory.factory.product.OssVideo;

public class AliyunOssFactory implements AbstractOssFactory {
    @Override
    public OssImage uploadImage(byte[] bytes) {
        return new AliyunOssImage(bytes,"IT Adam",true) ;
    }

    @Override
    public OssVideo uploadVideo(byte[] bytes) {
        return new AliyunOssVideo(bytes,"IT Adam",true) ;
    }
}
